package com.epam.chenjo.ms.salary.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.epam.chenjo.ms.salary.dao.SalaryDao;
import com.epam.chenjo.ms.salary.model.SalaryDetails;
import com.epam.chenjo.ms.salary.service.SalaryService;
@Component("s")
public class SalaryServiceImpl implements SalaryService{
	private SalaryDao salaryDao;

	@Override
	public List<SalaryDetails> getSalaries(String empId) {
		
		return salaryDao.fetchSalaries(empId);
	}

	public SalaryDao getSalaryDao() {
		return salaryDao;
	}
	@Resource(name="d")
	public void setSalaryDao(SalaryDao salaryDao) {
		this.salaryDao = salaryDao;
	}

}
